package com.meitianiot.module.smart.service;

import com.github.tocrhz.mqtt.publisher.MqttPublisher;
import org.springframework.stereotype.Component;

@Component
public class TestService {

    private final MqttPublisher publisher;

    public TestService(MqttPublisher publisher) {
        this.publisher = publisher;
    }

    public void sendTest(){
        publisher.send("camera_001", "test message.");
    }
}
